package com.hx.vending.service;

import com.hx.vending.bean.Model;
import com.hx.vending.util.Msg;

/**
 * Created by Administrator on 2018/12/29.
 * 提现申请
 */
public interface IDrawCashService {

    /**
     * 商户申请提现
     * @param userId
     * @param money
     * @return
     */
    Msg insertApplyForDrawCash(Integer userId, Double money,Integer type);

    /**
     * 后台查询提现申请
     * @param pageNum
     * @param pageSize
     * @return
     */
    Msg selectDrawCash(Integer pageNum, Integer pageSize);

    /**
     * 后台同意提现
     * @param userWithdrawId
     * @return
     */
    Msg updateAgreeDrawCash(Integer userWithdrawId);

    /**
     * 后台提现未通过
     * @param userWithdrawId
     * @return
     */
    Msg notAgreeDrawCash(Integer userWithdrawId);

}
